<template>
    <div>
        <div class="title border-bottom">周末去哪</div>
        <ul>
            <li 
                class="item border-bottom"
                v-for="ele in list"
                :key="ele.id"
            >
                <div class="item-img-wrapper">
                    <img :src="ele.imgUrl" alt="" class="item-img s">
                </div>
                <div class="item-info">
                    <p class="item-title">{{ ele.title }}</p>
                    <p class="item-desc">{{ ele.desc }}</p>
                </div>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
    name:'HomeWeekend',
    props:{
        list:Array
    },
    data(){
        return{
            recommendList:[
                {
                    id:'001',
                    imgUrl:'//img1.qunarzz.com/sight/p0/1508/96/b195d4ecbd48b7fc3ae049106f15c7ef.water.jpg_256x160_92934f01.jpg',
                    title:'泰山',
                    desc:'五岳之首，登泰山保平安'
                },{
                    id:'002',
                    imgUrl:'//img1.qunarzz.com/sight/p0/1508/96/b195d4ecbd48b7fc3ae049106f15c7ef.water.jpg_256x160_92934f01.jpg',
                    title:'泰山',
                    desc:'五岳之首，登泰山保平安'
                },{
                    id:'003',
                    imgUrl:'//img1.qunarzz.com/sight/p0/1508/96/b195d4ecbd48b7fc3ae049106f15c7ef.water.jpg_256x160_92934f01.jpg',
                    title:'泰山',
                    desc:'五岳之首，登泰山保平安'
                },{
                    id:'004',
                    imgUrl:'//img1.qunarzz.com/sight/p0/1508/96/b195d4ecbd48b7fc3ae049106f15c7ef.water.jpg_256x160_92934f01.jpg',
                    title:'泰山',
                    desc:'五岳之首，登泰山保平安'
                }
            ]
        }
    }
}
</script>
<style lang="stylus" scoped>
    @import '~@/assets/styles/mixins.styl';
    .title
        height:.8rem
        line-height: .8rem
        background: #eee
        text-indent:.2rem
    .item-img-wrapper
        width:100%
        height:0
        overflow:hidden
        padding-bottom:37.09%
    .item-img
        width:100%

    .item-title
        line-height:.54rem
        font-size: .32rem
        ellipsis()
    .item-desc
        line-height: .4rem
        color: #ccc
        ellipsis()




        
</style>